package com.tianji.learning.mapper;

import com.tianji.learning.domain.po.LearningLesson;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 学生课程表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
public interface LearningLessonMapper extends BaseMapper<LearningLesson> {




    @Select("select count(distinct user_id) from learning_lesson where course_id = {courseId}")
    Integer countByCourseId(Long courseId);
}
